package codingStudy.netEase2018Spring;

import java.util.Scanner;

/**
 * @author dell
 * @category 魔力手环
 */
public class WorkPlan {

	static int[] slove(int[] inputs, int magicTimes) {
		int n = inputs.length;
		for (int c = 0; c < magicTimes; c++) {
			int t = inputs[0];
			for (int i = 0; i < n - 1; i++) {
				int sum = inputs[i] + inputs[i + 1];
				inputs[i] = sum % 100;
			}
			inputs[n - 1] = (inputs[n - 1] + t) % 100;
		}
		return inputs;

	}

	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);
		int n = scanner.nextInt();
		int magicTimes = scanner.nextInt();
		int[] inputs = new int[n];
		for (int i = 0; i < n; i++) {
			inputs[i] = scanner.nextInt();
		}
		int[] result = slove(inputs, magicTimes);
		for (int i = 0; i < n-1; i++) {
			System.out.print(result[i]+" ");
		}
		System.out.print(result[n-1]);

		scanner.close();
	}

}
